package com.xjrsoft.module.customer.erp_model.eRP_SalesInvoice.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import com.xjrsoft.common.Enum.TransDataType;
import com.xjrsoft.common.annotation.DataTrans;
import io.swagger.annotations.ApiModel;

/**
 * 视图实体类
 *
 * @author pp
 * @since 2021-10-08
 */
@Data
@ApiModel(value = "列表ErpSalesinvoiceVo对象", description = "列表ErpSalesinvoiceVo对象")
public class ErpSalesinvoiceListVo {

    @JsonProperty("F_Id")
    private String fId;

    @JsonProperty("F_SalesInvoiCode")
    private String fSalesinvoicode;

    @JsonProperty("F_SalesOrderId")
    private String fSalesorderid;

    @JsonProperty("F_SalesCode")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select o.F_Id,o.F_SalesCode,o.F_ClientId,f.F_FullName,f.F_UnitAddress,f.F_UnitTelephone,f.F_OpenBank,f.F_TaxCode from erp_salesorder o left join erp_inoutunit f on o.F_ClientId=f.f_id", savedField = "F_SalesCode", showField = "F_SalesCode", multi = false)
    private String fSalescode;

    @JsonProperty("F_ChargePeople")
    private String fChargepeople;

    @JsonProperty("F_InvoiceDate")
    private LocalDateTime fInvoicedate;

    @JsonProperty("F_ClientId")
    private String fClientid;

    @JsonProperty("F_InvoiceAmount")
    private BigDecimal fInvoiceamount;

    @JsonProperty("F_CompanyName")
    private String fCompanyname;

    @JsonProperty("F_CompanyAddress")
    private String fCompanyaddress;

    @JsonProperty("F_CompanyTel")
    private String fCompanytel;

    @JsonProperty("F_AccountBank")
    private String fAccountbank;

    @JsonProperty("F_TaxID")
    private String fTaxid;

    @JsonProperty("F_Description")
    private String fDescription;


    @JsonProperty("flowStatus")
    private String flowStatus;

    @JsonProperty("nwfSchemeinfoId")
    private String nwfSchemeinfoId;

    @JsonProperty("formId")
    private String formId;
}
